<template>
  <div class="right-container">
    <h3>Right 组件--{{counter}}</h3>
  </div>
</template>

<script>
import bus from "../utils/eventBus";
export default {
  data(){
    return{
      counter:1
    }
  },
  created(){
    bus.$on('share',val=>{
      this.counter=val;
    })
  }
}
</script>

<style lang="less">
.right-container {
  padding: 0 20px 20px;
  background-color: lightskyblue;
  min-height: 250px;
  flex: 1;
}
</style>
